

(function($) {
	$.fn.validationEngineLanguage = function() {};
	$.validationEngineLanguage = {
		newLang: function() {
			$.validationEngineLanguage.allRules = 	{
					"required":{    			// Add your regex rules here, you can take telephone as an example
						"regex":"none",
						"alertText":"* 该项为必选项",
						"alertTextCheckboxMultiple":"* 请选择",
						"alertTextCheckboxe":"* 请选择"},
					"length":{
						"regex":"none",
						"alertText":"*您输入的字符长度不正确，请确保长度在 ",
						"alertText2":" 和 ",
						"alertText3": " 之间"},
					"maxCheckbox":{
						"regex":"none",
						"alertText":"* 您选取的选项过多，请重新选择"},	
					"minCheckbox":{
						"regex":"none",
						"alertText":"* 您选取的选项过少,至少选择 ",
						"alertText2":" 项"},	
					"confirm":{
						"regex":"none",
						"alertText":"* 您两次填写的内容不完全一致，请重新填写"},	
//从telephone往下，除了validate2fields，都需要写成如：custom[telephone]的样式
//custom与funcCall的差别在于，custom是使用正则表达式进行验证即可，而funcCall需要写js函数来进行验证。				
					"telephone":{
							/*"regex":"\d{3}-\d{8}|\d{4}-\d{7}|\d{8}|\d{7}",*/
						"regex":"/^0{0,1}1[0-9]{10}$/",
						"alertText":"* 无效的电话号码，请重新填写"},	
					"email":{
						"regex":"/^[a-zA-Z0-9_\.\-]+\@([a-zA-Z0-9\-]+\.)+[a-zA-Z0-9]{2,4}$/",
						"alertText":"* 无效的邮件地址，请重新填写"},	
					"date":{
                         "regex":"/^[0-9]{4}\-\[0-9]{1,2}\-\[0-9]{1,2}$/",
                         "alertText":"* 日期格式错误，请按照 2012-12-21 这样的格式填写"},
					"onlyNumber":{
						"regex":"/^[0-9\ ]+$/",
						"alertText":"* 只能输入数字"},	
					"onlyNumber2":{
							"regex":"/^[-+]?[0-9\ ]+$/",
							"alertText":"* 只能输入数字,包含正负数"},
					"noSpecialCaracters":{
						"regex":"/^.{1,20}$/",
						"alertText":"* 1-20个字符"},
						/*"noSpecialCaracters":{
						"regex":"/^[0-9a-zA-Z]+$/",
						"alertText":"* 该项只接受数字和字母的输入"},*/	
					"ajaxUser":{
						"file":"userValidator!isExist",
						"extraData":"type=ajax",
						"alertTextOk":"* 恭喜，用户名可用",	
						"alertTextLoad":"* 正在验证，请等待",
						"alertText":"* 该用户名已被占用，请换个名字试试"},
					"ajaxModUser":{
							"file":"secondUserMod.do",
							"extraData":"type=ajax",
							"alertTextOk":"* 恭喜，用户名可用",	
							"alertTextLoad":"* 正在验证，请等待",
							"alertText":"* 该用户名已被占用，请换个名字试试"},
					"ajaxExt_code":{
							"file":"secondUserAdd.do",
							"extraData":"type=ajax",
							"alertTextOk":"* 恭喜，该扩展码可用",	
							"alertTextLoad":"* 正在验证，请等待",
							"alertText":"* 该扩展码不可用，请换个扩展码"},	
					"onlyLetter":{
						"regex":"/^[a-zA-Z\ \']+$/",
						"alertText":"* 只能输入字母"},
					"validateGroup":{
						"nname":"validateGroup",
	    				"alertText":"*请选择用户组"},
					"validateClientCount":{
    					"nname":"validateClientCount",
    					"alertText":"*输入的终端不符合要求"},	
					"validateImprestCount":{
						"nname":"validateImprestCount",
						"alertText":"*充值条数不符合要求"}	
					}	
			
			
					
		}
	}
})(jQuery);

$(document).ready(function() {	
	$.validationEngineLanguage.newLang()
});